package org.windowkit.toolkit.frame;

import java.util.HashSet;
import java.util.Set;


/**
 * @author Rich O'Connell
 *
 */
public class WindowGroup {

	private final BaseIFrame owner;
	private final Set<BaseIFrame> members;
	/**
	 * @param owner
	 */
	public WindowGroup(final BaseIFrame owner) {
		this.owner = owner;
		members = new HashSet<BaseIFrame>();
	}

	/**
	 * Add a member to this group.
	 * @param m
	 */
	public void addMember(final BaseIFrame m) {
		members.add(m);
	}

	/**
	 * {@inheritDoc}
	 * @return
	 */
	public BaseIFrame getOwner() {
		return owner;
	}

	/**
	 * {@inheritDoc}
	 * @return
	 */
	public Set<BaseIFrame> getMembers() {
		return members;
	}



}
